package com.hz.web.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hz.web.dao.CkDao;
import com.hz.web.entity.CkHtmlEntity;
import com.hz.web.service.IckHtmlService;

@Service
public class CkHtmlImpl implements IckHtmlService {

	@Resource
	private CkDao dao;


	@Override
	public CkHtmlEntity selectByPrimaryKey(int id) {
		return dao.selectByPrimaryKey(id);
	}

	/**
	 * 修改富文本信息
	 * @param entity
	 * @return
	 */
	@Override
	public int updateCkHtml(CkHtmlEntity entity) {

		return dao.updateCkHtml(entity);
	}
	
	
	/**
	 * 根据富文本类型查询富文本信息
	 */
	@Override
	public List<CkHtmlEntity> queryCkHtml(Map<String, Object> parmsMap) {
		
		return dao.queryCkHtml(parmsMap);
	}
	
	/**
	 * 查询总条数
	 * @param parmsMap
	 * @return
	 */
	@Override
	public int queryCkHtmlCount(Map<String, Object> parmsMap) {
	
		return dao.queryCkHtmlCount(parmsMap);
	}

	/**
	 * 向富文本编辑器中插入数据
	 * @param entity
	 * @return
	 */
	@Override
	public int addCkHtml(CkHtmlEntity entity) {
		return dao.addCkHtml(entity);
	}

	

}
